package com.czk.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czk.common.utils.PageUtils;
import com.czk.gulimall.order.entity.OrderEntity;
import com.czk.gulimall.order.vo.*;

import java.text.ParseException;
import java.util.Map;

/**
 * 订单
 *
 * @author chenzhangkun
 * @email 1052031630@qq.com
 * @date 2021-12-07 23:00:02
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getorderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo vo) throws ParseException;
}

